.class Lcom/htc/android/footprints/activity/PostcardActivity$5;
.super Ljava/lang/Object;
.source "PostcardActivity.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/PostcardActivity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/PostcardActivity;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/PostcardActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 783
    iput-object p1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$5;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 784
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 785
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$5;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v1}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$200(Lcom/htc/android/footprints/activity/PostcardActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/android/footprints/vo/Footprint;->getID()I

    move-result v1

    if-ltz v1, :cond_0

    .line 786
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$5;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/PostcardActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/PostcardActivity$5;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    #getter for: Lcom/htc/android/footprints/activity/PostcardActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v2}, Lcom/htc/android/footprints/activity/PostcardActivity;->access$200(Lcom/htc/android/footprints/activity/PostcardActivity;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    invoke-virtual {v2}, Lcom/htc/android/footprints/vo/Footprint;->getID()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->removeFootprint(I)V

    .line 791
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$5;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/PostcardActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v1, :cond_1

    .line 793
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$5;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/PostcardActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 799
    :cond_1
    :goto_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/PostcardActivity$5;->this$0:Lcom/htc/android/footprints/activity/PostcardActivity;

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/PostcardActivity;->finish()V

    .line 800
    return-void

    .line 794
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 795
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method
